package com.example.yls.demoa;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import java.util.concurrent.BrokenBarrierException;

/**
 * Created by yls on 2018/11/6.
 */

public class MyBroadcastReceiver extends BroadcastReceiver {
        private IOnUpdateListener listener;
    public MyBroadcastReceiver(IOnUpdateListener listener) {
        this.listener = listener;
    }


    @Override
    public void onReceive(Context context, Intent intent) {

                listener.updateTime();

    }
}
